Gets the value associated with the specified key.
Syntax
Visual Basic (Declaration) | |
---|
Public Overridable Function TryGetValue( _
ByVal key As TKey, _
ByRef value As TValue _
) As Boolean |
Parameters
- key
- The key whose value to get.
- value
- When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.
Return Value
true if the object that implements
IDictionary contains an element with the specified key; otherwise, false.
Exceptions
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
See Also